<!DOCTYPE HTML>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>	
	<meta charset="utf-8" />	<!-- this charset declaration NEEDS to be first -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">		
	<meta name="description" content="" />
    <meta name="keywords" content="" />
	<link rel="apple-touch-icon" href="<?php echo Yii::app()->theme->baseUrl?>/images/favicon/apple-touch-icon.png" />
	<link rel="shortcut icon" href="<?php echo Yii::app()->theme->baseUrl?>/images/favicon/favicon.ico" type="image/vnd.microsoft.icon" />
	<link rel="shortcut icon" href="<?php echo Yii::app()->theme->baseUrl?>/images/favicon/favicon.ico" type="image/x-icon" />
    <link rel="canonical" href="http://www.xxx.com" />
	
	<!-- need to change -->
	<meta property="og:type" content="website" />
	<meta property="og:site_name" content="xxx" />
	<meta property="fb:app_id" content="xxxx" />    
	
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	
	<!-- style --> 
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/css/global.css" />
	
	<!-- js -->
	<script src="<?php echo Yii::app()->theme->baseUrl?>/js/jquery-1.7.2.min.js"></script>		
	<script src="<?php echo Yii::app()->theme->baseUrl?>/js/modernizr-1.7.min.js"></script>
</head>

<body>

<div id="wrapper">
	<header id="siteHeader" role="banner">			
		<div id="logoArea">
			<a id="logo" href="<?php echo $this->createUrl('/');?>"><img src="<?php echo Yii::app()->theme->baseUrl?>/images/static/logo.png" width="306" height="80" alt="Deals site" title="Deals site"></a>
			<div class="language">
				<a class="vn" href="#" title="Tiếng Việt"><img src="<?php echo Yii::app()->theme->baseUrl?>/images/static/vi.jpg" alt="Vi" /></a>
				<a class="en" href="#" title="English"><img src="<?php echo Yii::app()->theme->baseUrl?>/images/static/en.jpg" alt="En"/></a>
			</div>
			<ul class="login">
				<li><a href="<?php echo $this->createUrl('site/login')?>"><?php echo Yii::t('Message', 'TXT-LOGIN')?></a></li>
				<li class="last"><a href="<?php echo $this->createUrl('site/logout')?>"><?php echo Yii::t('Message', 'TXT-REGISTER')?></a></li>					
			</ul>
		</div> <!-- end logoArea -->
		<div class="clear"></div>
		<nav class="siteNavigation" role="navigation">
			<div class="navArea">
				<?php
				$this->widget('zii.widgets.CMenu', array(
					'htmlOptions' => array('class' => 'mainNav'),
					'activeCssClass' => 'current',
					'lastItemCssClass' => 'last',
					'items' => array(
						array('label' => Yii::t('Message', 'MENU-HEADER-NEW-DEAL'), 'url' => array('site/index')),
						array('label' => Yii::t('Message', 'MENU-HEADER-MONTH-DEAL'), 'url' => array('product/month')),
						array('label' => Yii::t('Message', 'MENU-HEADER-PARTNER'), 'url' => $this->createUrl('/tim-doi-tac')),
						array('label' => Yii::t('Message', 'MENU-HEADER-QA'), 'url' => $this->createUrl('/hoi-dap')),
					),
				)); 
				?>
				<div class="subscribe">							
					<form name="searchForm" role="search" action="" method="get">
						<?php $msgMail = Yii::t('Message', 'TXT-RECEIVE-MAIL');?>									
						<input name="q" class="input" value="<?php echo $msgMail?>" autocomplete="off" onclick="if(this.value == '<?php echo $msgMail?>') this.value='';" onblur="if(this.value.length == 0) this.value='<?php echo $msgMail?>';">
						<button type="submit" class="btnSubscribe btnButton" title="<?php echo Yii::t('Message', 'TXT-SEND-REGISTER')?>"><span><?php echo Yii::t('Message', 'TXT-SEND-REGISTER')?></span></button>
					</form>
				</div>
			</div>				
		</nav>			
	</header><!-- end header -->		
	<div class="clear"></div>

	<?php echo $content; ?>
	
	<div class="clear"></div>

	<footer id="siteFooter">
		<div class="fotArea">
			<aside id="siteLink">
				<section class="linksWrapper first">
					<h3>Trợ giúp</h3>
					<ul>
						<li><a href="#">Dealers là gì?</a></li>
						<li><a href="#">Hỏi đáp</a></li>
						<li><a href="#">Hướng đẫn mua hàng</a></li>							
					</ul>
				</section>
				<section class="linksWrapper">
					<h3>Nhận tin</h3>
					<ul>							
						<li><a href="#">Dealer là gì?</a></li>							
						<li><a href="#">Đăng ký qua mail</a></li>
						<li><a href="#">Đăng ký nhận tin RSS</a></li>							
					</ul>
				</section>
				<section class="linksWrapper">
					<h3>Hợp tác</h3>
					<ul>
						<li><a href="#">Hợp tác kinh doanh</a></li>
						<li><a href="#">Liên hệ hợp tác</a></li>
						<li><a href="#">Affiliate Widget Builder</a></li>							
					</ul>
				</section>
				<section class="linksWrapper">
					<h3>Hỏi đáp</h3>
					<ul>
						<li><a href="#">Cách mua hàng</a></li>
						<li><a href="#">Cách giao hàng</a></li>
						<li><a href="#">Câu hỏi thường gặp</a></li>							
					</ul>
				</section>
				<section class="linksWrapper last">						
					<h3>Công ty</h3>
					<ul>
						<li><a href="#">Về chúng tôi</a></li>
						<li><a href="#">Liên hệ</a></li>
						<li><a href="#">Quy chế</a></li>
						<li><a href="#">Tuyển dụng</a></li>							
					</ul>
				</section>
			</aside>
			<p class="social">
				<span class="cwu">Connect with us</span>
				<a href="#"><img src="<?php echo Yii::app()->theme->baseUrl?>/images/static/fbSmall.gif" alt="Facebook" /></a> <span>|</span><a href="#"><img src="<?php echo Yii::app()->theme->baseUrl?>/images/static/twitterSmall.gif" alt="Facebook" /></a>
			</p>
			<div class="copyRightArea">
				<p>
					&copy;2012 Dealers, Inc. All Rights Reserved. <br />
					<img class="logoFot" src="<?php echo Yii::app()->theme->baseUrl?>/images/static/logoFot.png" alt="Lorem Ipsum" width="120" height="25">			
				</p>
			</div>
		</div>			
	</footer> <!--end side footer -->
</div><!-- end wrapper -->

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f6b5bae49546d27"></script>
<script src="<?php echo Yii::app()->theme->baseUrl?>/js/slides.min.jquery.js"></script>
<script src="<?php echo Yii::app()->theme->baseUrl?>/js/a.js"></script>
<script>
	$(function() {
	  	//slides show
  		$('#slides').slides({
			preload: true,
			preloadImage: '<?php echo Yii::app()->theme->baseUrl?>/images/static/loading.gif',
			play: 5000,
			pause: 2800,
			hoverPause: true
		});
	});
</script>

</body>
</html>
